Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[1.0.4] Advance fork db root when pending lib greater than head #1009

Merged
merged 3 commits into from
Nov 5, 2024

Conversation

heifner
Copy link
Member

@heifner heifner commented Nov 4, 2024

When syncing under Savanna it is common for pending LIB to be greater than head. log_irreversible updates the block log and fork db root by the range of blocks from root->LIB when head is in root->LIB. Since LIB can be greater than head this would result in forkdb.fetch_branch returning an empty branch since searching back from head would not find the LIB causing large delays in the advancement of root.

Update log_irreversible to fetch branch from root->head when LIB is greater than head and head is in root->head.

Resolves #1003

@heifner heifner requested review from greg7mdp and linh2931 November 4, 2024 16:09
@heifner heifner added the OCI Work exclusive to OCI team label Nov 4, 2024
@heifner heifner linked an issue Nov 4, 2024 that may be closed by this pull request
@ericpassmore ericpassmore added the bug The product is not working as was intended. label Nov 4, 2024
@ericpassmore
Copy link
Contributor

ericpassmore commented Nov 4, 2024

Note:start
category: System Stability
component: Internal
summary: Advance fork db root when pending lib greater than head.
Note:end

@heifner heifner merged commit da6b82f into release/1.0 Nov 5, 2024
36 checks passed
@heifner heifner deleted the GH-1003-lib branch November 5, 2024 15:40
@ericpassmore
Copy link
Contributor

Note:start
category: System Stability
component: Internal
summary: Performance Update, advance fork db root when pending lib greater than head.
Note:end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug The product is not working as was intended. OCI Work exclusive to OCI team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

syncing, fork database inconsistency on exit
4 participants